package com.maochang.top.config;


import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

//声明为配置类
@Configuration
//包扫描
@ComponentScan("com.maochang.top")
//导入外部配置文件,注意:不能用* 和不能加多个 加多个要用数组
@PropertySource(name ="jdbc",value = {"classpath:jdbc.properties","classpath:jdbc1.properties"},ignoreResourceNotFound = true)
//导入其他配置类
@Import({JDBCConfig.class,MyBaitsConfig.class})
public class SpringConfig {

}
